package com.yl.web.controller.api;

import com.yl.common.core.domain.AjaxResult;
import com.yl.domain.ConferenceCourseDO;

import com.yl.service.ConferenceCourseService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@RequestMapping("/course/")
@RestController
public class ConfernecnCourseController {


    private static final Logger log = LoggerFactory.getLogger(ConfernecnCourseController.class);

    @Resource
    ConferenceCourseService conferenceCourseService;


    @RequestMapping("/save")
    @ResponseBody
    public AjaxResult save(@RequestBody ConferenceCourseDO conferenceCourseDO) {
        return conferenceCourseService.save(conferenceCourseDO);
    }

    @RequestMapping("/getCourseById")
    @ResponseBody
    public AjaxResult getCourseById(@RequestBody ConferenceCourseDO conferenceCourseDO) {
        return conferenceCourseService.getCourseById(conferenceCourseDO);
    }



}
